﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ExtractEmails
{
    class ExtractMail
    {
        static void Main(string[] args)
        {
            string text = "boldrick7@gmail.com this is my mail abv.abv@lud.co uhahaha@gmail blqqq.com ";
            string pattern = @"([a-z]*[A-Z]*[0-9]*)+ @ [a-z]* (\.) [a-z]{1,4}";
            Match match = Regex.Match(text, pattern, RegexOptions.IgnorePatternWhitespace);
            while (match.Success)
            {
                Console.WriteLine(match);
                match = match.NextMatch();
            }
        }
    }
}
